#include "overnight_stay_type_struct_csv.hpp"
#include "type_conversion.hpp"


overnight_stay_type_struct_csv::overnight_stay_type_struct_csv(std::vector<std::string> const& v)
{
		
	   switch(v.size()-1)
 	   {
		case NOTE: 
			set_descr(v[NOTE]);
		case CODE: 
			set_name(v[CODE]);
		case ID:
			set_id(type_conversion<int>::to_number(v[ID]));
			break;
		default: break;
	   }
		
		std::cout << "[overnight_stay_type_struct_csv.overnight_stay_type_struct_csv] " << *this << std::endl;
}